#ifndef ORDERITEM_H
#define ORDERITEM_H

#include <QWidget>
#include <QListWidget>

#include "FoodOrder.h"
#include "FoodOrderTable.h"

namespace Ui {
class OrderItem;
}

class OrderItem : public QListWidget
{
    Q_OBJECT

public:
    explicit OrderItem(QListWidget *parent = nullptr);
    ~OrderItem();
    void init(int id);

signals:
    void queryOrder(FoodOrder foodOrder);   //查看订单

private slots:
    void on_query_btn_clicked();

private:
    Ui::OrderItem *ui;
};

#endif // ORDERITEM_H
